<template>
    <div>
        <h2>Find - find - 发现</h2>
        <h2 @click="changeWps">wps -- {{wps}}</h2>
        <ul>
            <li v-for="(l,i) in list" :key="i">{{l.goodsName}}</li>
        </ul>
    </div>
</template>

<script>
import axios from "axios"
export default {
    data() {
        return {
            list:[]
        }
    },
    mounted() {
        axios({
            method:"get",
            url:"/getGoods"
        })
        .then(res=>{
            console.log(res);
            this.list = res.data.data
        })
        axios({
            method:"post",
            url:'/getData1',
        })
        .then(res=>{
            console.log(res);
        })
    },
}
</script>